package ru.miit.elearning.hibernate.dto.beans;

import java.io.Serializable;

/**
 *
 * @author Cyclone
 */
public class Roles implements Serializable {
    private boolean admin = false;
    private boolean tutor = false;
    private boolean student = false;
    // private boolean onlyStudent = false;

    public boolean isOnlyStudent() {
        return (student && !admin && !tutor);
    }
    /*
    public void setOnlyStudent(boolean onlyStudent) {
        this.onlyStudent = onlyStudent;
    }
    */
    public boolean isAdmin() {
        return admin;
    }

    public void setAdmin(boolean admin) {
        this.admin = admin;
    }

    public boolean isTutor() {
        return tutor;
    }

    public void setTutor(boolean tutor) {
        this.tutor = tutor;
    }

    public boolean isStudent() {
        return student;
    }

    public void setStudent(boolean student) {
        this.student = student;
    }
}
